var path = require('path')
var fs = require('fs')
var promisify = require('util').promisify
var mime = require('mime-types')
let url = require('url')
let querystring = require('querystring')

// let obj = querystring.parse('')

// console.log(obj, 'url obj')

// console.log(url.parse(urlObj.query))


let extname = '.docx'

// console.log(mime.lookup(extname)) -
// .docx => application/vnd.openxmlformats-officedocument.wordprocessingml.document

let contentType = mime.lookup(extname)

let convertedContentType = contentType.replace(/[/|.]/g, '-')

// console.log(convertedContentType)
// application-vnd-openxmlformats-officedocument-wordprocessingml-document







// fileMapList.map(addClzNameProp) 返回什么

// contentType.replace(/[/|.]/g, '-')

// console.log(mime.lookup('.docx'))

// let breadCrumbList = pathname.split('/')
//     .filter(Boolean)
//     .map(_ => '/' + _)
//     // .